#ifndef _EXPLOSIONMANAGER_H_
#define _EXPLOSIONMANAGER_H_

#include <windows.h>
#include <xnamath.h>
#include "Explosion.h"

#define EXPLOSION_MAX_COUNT 20

class ExplosionsManager
{
public:
	ExplosionsManager();
	ExplosionsManager(const ExplosionsManager&);
	~ExplosionsManager();

	static ExplosionsManager* Instance();

	void Initialize();
	void Update(int pElapsedTime);
	void StartExplosion(XMFLOAT3 pPosition, XMFLOAT3 pNormal);
	void Render();
protected:
	static ExplosionsManager* mInstance;

	int mNextIndexExplosion;
	Explosion mSmokes[EXPLOSION_MAX_COUNT];
};

#endif